package com.yinp.proapp.base.activity;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;

import com.yinp.proapp.manger.BaseManager;
import com.yinp.proapp.module.wanandroid.WanManager;

public abstract class PresenterWanAndroidActivity<T extends ViewBinding> extends AppBaseActivity<T> {
    protected WanManager presenter;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        presenter = new WanManager(this);
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        presenter.detachView();
    }
}
